package cn.jbit.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class WelcomeController {
	
	@RequestMapping("/index")
	public String index(Model model){
		model.addAttribute("greeting", "Hello,Spring MVC!");
		return "welcome";
	}
	
}
